package cn.huiyunche.base.service.interfaces;


import cn.huiyunche.base.service.model.DUser;

/**
 * Created by jxy on 16/12/12.
 */
public interface DUserService {

    /**
     * 插入数据
     *
     * @param dUser the d user
     * @return int
     */
    public int insertSelective(DUser dUser);

    /**
     * 删除数据
     *
     * @param id the id
     * @return int
     */
    int deleteByPrimaryKey(Long id);


    /**
     * Select by primary key d user.
     *
     * @param id the id
     * @return the d user
     */
    DUser selectByPrimaryKey(Long id);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(DUser record);

    /**
     * 校验手机号在此表中是否存在
     *
     * @param phone the phone
     * @return boolean
     */
    public boolean validPhoneExist(String phone);

    /**
     * Select by phone d user.
     *
     * @param phone the phone
     * @return the d user
     */
    DUser selectByPhone(String phone);
}
